import { lazy } from "react";

let routes=[
    {
        path:"/layout",
        component:lazy(()=>import("../pages/layout")),
        meta:{title:"",icon:"",},
        children:[
            {
                path:"/layout/home",
                component:lazy(()=>import("../pages/home")),
                meta:{title:"首页",icon:"icon-qiepian",},
                children:[
                    {
                        path:"/layout/home",
                        component:lazy(()=>import("../pages/home")),
                        meta:{title:"首页",icon:"icon-qiepian",},
                        children:[],
                    },{
                        path:"/layout/home",
                        component:lazy(()=>import("../pages/home")),
                        meta:{title:"首页",icon:"icon-qiepian",},
                        children:[],
                    },{
                        path:"/layout/home",
                        component:lazy(()=>import("../pages/home")),
                        meta:{title:"首页",icon:"icon-qiepian",},
                        children:[],
                    },
                ],
            },{
                path:"/layout/letter",
                component:lazy(()=>import("../pages/letter")),
                meta:{title:"信息",icon:"icon-xiaoxi2",},
                children:[],
            },{
                path:"/layout/mine",
                component:lazy(()=>import("../pages/mine")),
                meta:{title:"我的",icon:"icon-my",},
                children:[],
            },
        ],
    },{
        path:"/login",
        component:lazy(()=>import("../pages/login")),
        meta:{title:"登录",icon:"",},
        children:[],
    },
]
export default routes